package com.psp.park.persist.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.psp.park.model.AreaBean;
import com.psp.park.persist.dao.AreaDAO;

@Repository
public class AreaImpl extends BaseImpl implements AreaDAO {

	protected static final String NAME_SPACE = NAME_SPACE_HEADER + ".AreaMapper";

	@Override
	public AreaBean selectById(String id) {
		return sqlSessionTemplate.selectOne(NAME_SPACE + ".selectListById", id);
	}

	@Override
	public List<AreaBean> selectListByIds(List<String> ids) {
		Map<String, Object> where = new HashMap<>();
		where.put("ids", ids);
		return sqlSessionTemplate.selectList(NAME_SPACE + ".selectListByIds", where);
	}
}
